package com.zhonghui.scm.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zhonghui.scm.mapper.ScmPurchasingApplictionMapper;
import com.zhonghui.scm.domain.vo.ScmPurchasingApplictionVo;
import com.zhonghui.scm.service.IScmPurchasingApplictionService;

/**
 * 供应链SCM-采购管理-采购申请Service业务层处理
 * 
 * @author qiezhi
 * @date 2023-12-18
 */
@Service
public class ScmPurchasingApplictionServiceImpl implements IScmPurchasingApplictionService 
{
    @Autowired
    private ScmPurchasingApplictionMapper scmPurchasingApplictionMapper;

    /**
     * 查询供应链SCM-采购管理-采购申请
     * 
     * @param id 供应链SCM-采购管理-采购申请主键
     * @return 供应链SCM-采购管理-采购申请
     */
    @Override
    public ScmPurchasingApplictionVo selectScmPurchasingApplictionById(Long id)
    {
        return scmPurchasingApplictionMapper.selectScmPurchasingApplictionById(id);
    }

    /**
     * 查询供应链SCM-采购管理-采购申请列表
     * 
     * @param scmPurchasingAppliction 供应链SCM-采购管理-采购申请
     * @return 供应链SCM-采购管理-采购申请
     */
    @Override
    public List<ScmPurchasingApplictionVo> selectScmPurchasingApplictionList(ScmPurchasingApplictionVo scmPurchasingAppliction)
    {
        return scmPurchasingApplictionMapper.selectScmPurchasingApplictionList(scmPurchasingAppliction);
    }

    /**
     * 新增供应链SCM-采购管理-采购申请
     * 
     * @param scmPurchasingAppliction 供应链SCM-采购管理-采购申请
     * @return 结果
     */
    @Override
    public int insertScmPurchasingAppliction(ScmPurchasingApplictionVo scmPurchasingAppliction)
    {
        return scmPurchasingApplictionMapper.insertScmPurchasingAppliction(scmPurchasingAppliction);
    }

    /**
     * 修改供应链SCM-采购管理-采购申请
     * 
     * @param scmPurchasingAppliction 供应链SCM-采购管理-采购申请
     * @return 结果
     */
    @Override
    public int updateScmPurchasingAppliction(ScmPurchasingApplictionVo scmPurchasingAppliction)
    {
        return scmPurchasingApplictionMapper.updateScmPurchasingAppliction(scmPurchasingAppliction);
    }

    /**
     * 批量删除供应链SCM-采购管理-采购申请
     * 
     * @param ids 需要删除的供应链SCM-采购管理-采购申请主键
     * @return 结果
     */
    @Override
    public int deleteScmPurchasingApplictionByIds(Long[] ids)
    {
        return scmPurchasingApplictionMapper.deleteScmPurchasingApplictionByIds(ids);
    }

    /**
     * 删除供应链SCM-采购管理-采购申请信息
     * 
     * @param id 供应链SCM-采购管理-采购申请主键
     * @return 结果
     */
    @Override
    public int deleteScmPurchasingApplictionById(Long id)
    {
        return scmPurchasingApplictionMapper.deleteScmPurchasingApplictionById(id);
    }
}
